<div class="wrapper">
  <?php $this->partial('Common/mainHeader');?>

  <?php $this->partial('Common/mainSiderbar');?>

  <div class="content-wrapper">
    <section class="content-header">
          <h1>激活码<small>记录</small></h1>
      <ol class="breadcrumb">
        <li><a href="/"><i class="fa fa-fw fa-home"></i> 首页</a></li>
        <li class="active"> 激活码记录</li>
      </ol>
    </section>
    <div class="content">
      <div class="box">
        <div class="box-header with-border"><h3 class="box-title">激活码记录</h3></div>

        <div class="box-body">
          <table class="table table-bordered">
            <tbody>
              <tr>
                <th>编号</th>
                <th>支出</th>
                <th>收入</th>
                <th>新余额</th>
                <th>旧余额</th>
                <th>类型</th>
                <th>创建时间</th>
              </tr>
              <?php foreach($pagerUserWalletActivationCodeLog as $userWalletActivationCodeLog) { ?>
              <tr>
                <td><?php echo $userWalletActivationCodeLog -> user_wallet_activation_code_log_id; ?></td>
                <?php if($userWalletActivationCodeLog -> active == 0) { ?>
                  <td><?php echo $userWalletActivationCodeLog -> amount; ?></td>
                  <td>0</td>
                <?php } else { ?>
                  <td>0</td>
                  <td><?php echo $userWalletActivationCodeLog -> amount; ?></td>
                <?php } ?>
                <td><?php echo $userWalletActivationCodeLog -> amount_new; ?></td>
                <td><?php echo $userWalletActivationCodeLog -> amount_old; ?></td>
                <td><?php echo $this -> config -> user_wallet_activation_code_log_type[$userWalletActivationCodeLog -> type]; ?></td>
                <td><?php echo date('Y-m-d H:m:s', $userWalletActivationCodeLog -> create_time); ?></td>
              </tr>
              <?php } ?>
            </tbody>
          </table>
        </div>

        <div class="box-footer clearfix">
          <?php if($pagerUserWalletActivationCodeLog -> haveToPaginate()) { ?>
          <ul class="pagination pagination-sm no-margin pull-right">
            <?php echo $pagerUserWalletActivationCodeLog -> getLayout(); ?>
          </ul>
          <?php } ?>
        </div>
      </div>
    </div>
  </div>

  <?php $this->partial('Common/mainFooter');?>
</div>

<?php $this->partial('Common/mainScript');?>